package com.android.common.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.android.common.R;
import com.android.common.base.rv.BaseRvHolder;
import com.android.common.mvp.model.CommonItemBean;

public class CommonTvTvHolder extends BaseRvHolder<CommonItemBean> {

    private Context mContext;

    private final TextView mTvName;

    private final TextView mTvValue;

    public CommonTvTvHolder(View itemView) {
        super(itemView);
        mContext = itemView.getContext();
        mTvName = itemView.findViewById(R.id.tv_name);
        mTvValue = itemView.findViewById(R.id.tv_value);
    }

    @Override
    public void bindData(CommonItemBean bean, int position) {
        mTvName.setText(bean.getName());
        mTvValue.setText(bean.getValue());
    }
}
